class Person(object):
    def eat(self, food):
        print('正在吃' + food)

    def sleep(self):
        print('正在睡觉')

_p = Person()   # 不让外部访问
eat = _p.eat    # 给对象的eat方法设置一个别名eat
sleep = _p.sleep